package cn.nlsde.service.impl;


import cn.nlsde.dao.UserMapper;
import cn.nlsde.entity.User;
import cn.nlsde.service.UserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * Created by zhangwj on 16/2/27.
 */
@Service
public class UserServiceImpl implements UserService {

    public final Logger logger = LoggerFactory.getLogger(UserServiceImpl.class);

    @Autowired
    UserMapper userMapper;

    @Override
    public int save(User obj) {
        return 0;
    }

    @Override
    public int delete(User obj) {
        return 0;
    }

    @Override
    public int update(User obj) {
        return 0;
    }

    @Override
    public User selectById(Integer id) {
        return null;
    }

    @Override
    public List<User> selectAll() {
        return null;
    }

    @Override
    public int deleteById(Integer id) {
        return userMapper.deleteByPrimaryKey(id);
    }
}
